home *** CD-ROM | disk | FTP | other *** search
/ Mac Mania 2 / MacMania 2.toast / Demo's / Tools&Utilities / HyperCard / CambridgeMedlineTutor / ccMedTut2 / stack.txt < prev   
Encoding:
Text File  |  1992-02-24  |  6.3 KB  |  201 lines

  1. -- stack: in
  2. -- format: 8 (HyperCard 1)
  3. -- flags: 0x1000 (none)
  4. -- protect password hash: 0
  5. -- maximum user level: 5 (scripting)
  6. -- window: Rect(x1=0, y1=0, x2=0, y2=0)
  7. -- screen: Rect(x1=0, y1=0, x2=0, y2=0)
  8. -- card dimensions: w=0 h=0
  9. -- scroll: x=0 y=0
  10. -- background count: 22
  11. -- first background id: 2645
  12. -- card count: 131
  13. -- first card id: 80264
  14. -- list block id: 2066
  15. -- print block id: 8415
  16. -- font table block id: 0
  17. -- style table block id: 0
  18. -- free block count: 50
  19. -- free size: 30080 bytes
  20. -- total size: 360448 bytes
  21. -- stack block size: 6656 bytes
  22. -- created by hypercard version: 0x01258000
  23. -- compacted by hypercard version: 0x01258000
  24. -- modified by hypercard version: 0x01258000
  25. -- opened by hypercard version: 0x01258000
  26. -- patterns[0]: 0x0000000000000000
  27. -- patterns[1]: 0x8000000008000000
  28. -- patterns[2]: 0x8800220088002200
  29. -- patterns[3]: 0x8888222288882222
  30. -- patterns[4]: 0x88AA22AA88AA22AA
  31. -- patterns[5]: 0xCCAA33AACCAA33AA
  32. -- patterns[6]: 0xEEAABBAAEEAABBAA
  33. -- patterns[7]: 0xEEBBBBEEEEBBBBEE
  34. -- patterns[8]: 0xFFBBFFEEFFBBFFEE
  35. -- patterns[9]: 0xFFBBFFFFFFBBFFFF
  36. -- patterns[10]: 0x8010022001084004
  37. -- patterns[11]: 0xFFFFFFFFFFFFFFFF
  38. -- patterns[12]: 0x8822882288228822
  39. -- patterns[13]: 0x1122448811224488
  40. -- patterns[14]: 0xC4800C6843023026
  41. -- patterns[15]: 0xB130031BD8C00C8D
  42. -- patterns[16]: 0xAA00AA00AA00AA00
  43. -- patterns[17]: 0x8822552288225522
  44. -- patterns[18]: 0x8855225588552255
  45. -- patterns[19]: 0x77DD77DD77DD77DD
  46. -- patterns[20]: 0x8000000000000000
  47. -- patterns[21]: 0xAA55AA55AA55AA55
  48. -- patterns[22]: 0x038448300C020101
  49. -- patterns[23]: 0x8244394482010101
  50. -- patterns[24]: 0x8814224188412214
  51. -- patterns[25]: 0x8080413E080814E3
  52. -- patterns[26]: 0x22048C7422179810
  53. -- patterns[27]: 0xBE808808EB088880
  54. -- patterns[28]: 0x25C8328964244C92
  55. -- patterns[29]: 0xA29C41BE2AC914EB
  56. -- patterns[30]: 0x40A00000040A0000
  57. -- patterns[31]: 0x8040200002040800
  58. -- patterns[32]: 0xAA00800088008000
  59. -- patterns[33]: 0xFF80808080808080
  60. -- patterns[34]: 0x081C22C180010204
  61. -- patterns[35]: 0xFF808080FF080808
  62. -- patterns[36]: 0xF87422478F172271
  63. -- patterns[37]: 0xBF00BFBFB0B0B0B0
  64. -- patterns[38]: 0xFF7FBE5DA2418000
  65. -- patterns[39]: 0xFAF5FAF5A050A050
  66. -- checksum: 0x0
  67. ----- HyperTalk script -----
  68. --Use in OpenCard script on cards with words highlighted with rectangle
  69. on FlashPict
  70.   Repeat 2
  71.     hide card picture
  72.     wait 5
  73.     show card picture
  74.   end repeat
  75. End FlashPict
  76.  
  77. --Use on cards where search terms are typed in automatically. Note --that field to be typed into must be named "blue"
  78. On TypeChar
  79.   set userlevel to 2
  80.   global TVar
  81.   click at loc of card field "blue"
  82.   put 1 into x
  83.   repeat for the number of chars in tVar
  84.     get char x of tVar
  85.     type it
  86.     add 1 to x
  87.     wait 10
  88.   End Repeat
  89.   set userlevel to 1
  90. End TypeChar
  91.  
  92.  
  93. --Use to show field "red" with unDissolve - Note that it only works --for going to next card
  94. On UnDissolve
  95.   lock screen
  96.   go next
  97.   hide card field "red"
  98.   unlock screen
  99.   wait 20
  100.   lock screen
  101.   show card field "red"
  102.   unlock screen with dissolve
  103. End UnDissolve
  104.  
  105. --For going to (Advanved) Menu card
  106. On UnDissolveToMenu
  107.   lock screen
  108.   go card "menu"
  109.   hide card field "red"
  110.   unlock screen
  111.   wait 20
  112.   lock screen
  113.   show card field "red"
  114.   unlock screen with dissolve
  115. End UnDissolveToMenu
  116.  
  117. --For use with flashing dot in field between 2 non-flashing dots
  118. On FlashDot
  119.   repeat 5
  120.     hide card field "dot"
  121.     wait 20
  122.     show card field "dot"
  123.     wait 50
  124.   end repeat
  125. End FlashDot
  126.  
  127. --********************************************
  128. --*********************************************
  129. --********************************************
  130. --*********************************************
  131. --The following copied & adapted from stack ccMedTut1 ---->>
  132.  
  133. --Note that Tab,Enter,Arrow, and REturn keys are controlled from within stak scrpt.Stak scrpt programs these keys to beep. In cases where they are supposed to cause a diff action (i.e. Go next card), t scrpt for individual card has a handler that overrides t stak scrpt - Works nicely.If all arrows are supposed to beep, I've deleted t card scrpt to program this, since t stak scrpt already does it.
  134.  
  135. --On OpenStack
  136. --hide menubar
  137. --End OpenStack
  138.  
  139. --*************************************
  140. --Protection - Stak protctn level(set in Dialog Box with password --is set to 2, so that letters can be typed in where necessary. --This can be re-set [only] to lower level (i.e. 1) with a scrpt, which --is what this OpenCard scrpt does for each card.
  141.  
  142. on openCard
  143.   --setting userLevel to 1. This will be overridden in OpenCard --scrpt for cards where info is typed in
  144.   --set the userLevel to 1  --for public use stak, make this "set ..to 1"
  145.  
  146.   --setting cantModify. Overridden in OpenCard script for cards --that have counter
  147.   --set cantModify of this stack to true   --change to true for publ use
  148.  
  149.   --next 2 lines are to create variable to use in OpenCard --scrpts for all cards - sets time to wait before displaying --info field - Change variable according to desire...
  150.   global x      --easier to do this in OpenCard scrpt instd of OpenStk
  151.   put 40 into x   --scr because dont have to leave stak to initialze
  152.  
  153.  
  154.   --goes with On Idle script below
  155.   global origticks
  156.   put the ticks into origticks
  157. end openCard
  158.  
  159. --****************************************
  160.  
  161. --Handler below controls how much idle time until return to first card
  162. on idle
  163.   global origticks
  164.   if the ticks - origticks > 18000 then    --60 ticks per sec,3600
  165.     go stack "HardinStart"       --ticks per min
  166.   end if
  167. end idle
  168.  
  169. --*******************************************
  170.  
  171. --Before putting stak out for public, there should be line for: back, home, help, recent, *first, *prev, *next, *last, *find, *message. --Starred ones taken out for devlpmnt use, of course .. Try just --putting 2 dashes in front of lines not to be used...
  172.  
  173. --On doMenu theItem
  174. --if theItem is "back" or --theItem is "home" or --theItem is "help" or --theItem is "recent" or --theItem is "first" or --theItem is "prev" or --theItem is "next" or --theItem is "last" or --theItem is "find"
  175. --then beep
  176. --Else pass doMenu        --!!This line critical!!
  177. --End doMenu
  178.  
  179. --***************************************
  180.  
  181. On TabKey
  182.   beep
  183. End TabKey
  184.  
  185. On EnterKey
  186.   beep
  187. End EnterKey
  188.  
  189. --On ArrowKey which
  190. --if which is "right" then beep
  191. --if which is "down" then beep
  192. --if which is "left" then beep
  193. --if which is "up" then beep
  194. --End ArrowKey
  195.  
  196. --Make this an active scrpt (remove initial hyphens) before putting --out for public use
  197. --On ReturnKey
  198. --beep
  199. --End ReturnKey
  200.  
  201.